package com.web.base.user.message;

import com.blue.core.dict.State;
import com.blue.core.dict.Type;
import com.web.core.join.AreaJoin;

import java.io.Serializable;

/**
 * 收货地址响应内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2018年06月26日
 */
public class AddressResponse implements AreaJoin, Serializable
{
	private static final long serialVersionUID = 1L;
	
	private Integer id; // 编号
	private Integer userId; // 用户编号
	private Integer provinceId; // 省份编号
	private Integer cityId; // 城市编号
	private Integer areaId; // 区域编号
	private String name; // 名称
	private String consignee; // 收货人
	private String address; // 详细地址
	private String mobile; // 手机号码
	private String email; // 电子邮箱
	private State state; // 状态：0正常，1作废
	private Type def; // 是否默认：0否，1是

	private String provinceName; // 省份名称
	private String cityName; // 城市名称
	private String areaName; // 区域名称
	
	public AddressResponse()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getUserId()
	{
		return this.userId;
	}
	
	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}
	
	public Integer getProvinceId()
	{
		return this.provinceId;
	}
	
	public void setProvinceId(Integer provinceId)
	{
		this.provinceId = provinceId;
	}
	
	public Integer getCityId()
	{
		return this.cityId;
	}
	
	public void setCityId(Integer cityId)
	{
		this.cityId = cityId;
	}
	
	public Integer getAreaId()
	{
		return this.areaId;
	}

	@Override
	public String getAllArea()
	{
		return this.getAllArea(" ");
	}

	@Override
	public String getAllArea(String sep)
	{
		StringBuilder sb = new StringBuilder(24);
		sb.append(provinceName).append(sep);
		sb.append(cityName).append(sep);
		sb.append(areaName).append(sep);
		return sb.toString();
	}

	public void setAreaId(Integer areaId)
	{
		this.areaId = areaId;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getConsignee()
	{
		return this.consignee;
	}
	
	public void setConsignee(String consignee)
	{
		this.consignee = consignee;
	}
	
	public String getAddress()
	{
		return this.address;
	}
	
	public void setAddress(String address)
	{
		this.address = address;
	}
	
	public String getMobile()
	{
		return this.mobile;
	}
	
	public void setMobile(String mobile)
	{
		this.mobile = mobile;
	}
	
	public String getEmail()
	{
		return this.email;
	}
	
	public void setEmail(String email)
	{
		this.email = email;
	}

	public State getState()
	{
		return state;
	}

	public void setState(State state)
	{
		this.state = state;
	}

	public Type getDef()
	{
		return def;
	}

	public void setDef(Type def)
	{
		this.def = def;
	}

	public String getProvinceName()
	{
		return provinceName;
	}

	@Override
	public void setProvinceName(String provinceName)
	{
		this.provinceName = provinceName;
	}

	public String getCityName()
	{
		return cityName;
	}

	@Override
	public void setCityName(String cityName)
	{
		this.cityName = cityName;
	}

	public String getAreaName()
	{
		return areaName;
	}

	@Override
	public void setAreaName(String areaName)
	{
		this.areaName = areaName;
	}
}
